package com.cloud.dong.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author DJ
 * @description
 * @date 2022/2/10 10:44 下午
 **/

@RestController
@RefreshScope
public class ConfigClientController {

    @Value("${config.info}")
    private String configInfo;

    /**
     * 测试配置中心客户端获取配置中心配置信息
     *
     * @param
     * @return java.lang.String
     * @author DJ
     * @date 10:46 下午 2022/2/10
     **/
    @GetMapping("/config-client/getConfigInfo")
    public String getConfigInfo() {
        return configInfo;
    }
}
